home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 March / EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso / earcd / gnu / gnpltsrc.lha / Makefile < prev    next >
Makefile  |  1996-01-30  |  6KB  |  198 lines

  1. #
  2. #     makefile for AMIGA GCC 
  3. #
  4. #
  5. #
  6.  
  7. # where to install help file gnuplot.gih
  8. HELPDEST=\"GNUPLOT:docs/gnuplot.gih\"
  9. # Where to send email about bugs and comments (locally)
  10. EMAIL=\"bug-gnuplot@dartmouth.edu\"
  11.  
  12. # based on
  13. # Manx Aztec C v5.2 makefile
  14. #
  15. # PROTOTYPE__P __P is already defined
  16. # STRNCASECMP  gnu should have it
  17. # MY_TERMINALS lets see something
  18. # PIPES maybe it will work ?
  19. #
  20.  
  21. ############################################################
  22. # Explanations of CFLAGS definitions.
  23. #  These should not need to be changed by you.
  24. # They are set correctly for each machine below. If your machine
  25. # doesn't fit the one of the patterns, override on the make command
  26. # line or make a new target for it and a new _FLAGS definition.
  27. #  -DBZERO if you need to use bzero() instead of memset()
  28. #  -DBCOPY if your memcpy() is called bcopy()
  29. #  -DNOCOPY if you don't have a memcpy() by any name
  30. #  -DSTRNICMP if you have strnicmp()
  31. #  -DSTRNCASECMP if you have strncasecmp() (GNU Libc, bsd)
  32. #  -DGAMMA=foo if your gamma function is called foo(). Apollos and
  33. #    Linux have lgamma(3m). The default is -DGAMMA=gamma.
  34. #  -DGETCWD if your unix uses getcwd() instead of getwd()
  35. #    this is needed by HP-UX and Cray Unicos systems.
  36. #  -DULTRIX_KLUDGE if you run X windows on Ultrix and experience the
  37. #    "every other plot" problem.
  38. #  -DCRIPPLED_SELECT if "select errors" are encountered with X. This
  39. #    option is needed on SVR3 platforms with incomplete support for
  40. #    the BSD select() system call
  41. #  -DXPG3_LOCALE if your system uses the 'setlocale' function to
  42. #    support foreign charactersets (currently only ISO8859-1).
  43. #  -Dunix is required to explicitly define "unix" for SCO and IBM
  44. #          RS/6000 running AIX 3.2
  45. #  -DNO_STDLIB_H if you are missing the stdlib.h header (old bsd systems)
  46. #  -DNO_SYS_TYPES_H if you don't have sys/types.h
  47. #  -DNO_STRCHR if you have index instead of strchr
  48. #  -DNO_STRIN_H if you have strings.h instead of string.h
  49. #  -DHAVE_UNISTD_H if you have unistd.h
  50. #  -DHAVE_LIBC_H if you have libc.h (NeXT)
  51. #  -DNO_ERRNO_H if you don't have errno.h
  52. #  -fswitch if you are compiling on a Sun3 (or even -f68881)
  53. #    (but -fswitch is buggy on some systems, so watch out)
  54. #  -DRETSIGTYPE=int if the argument to signal is an int function
  55. #  -DSIGFUNC_NO_INT_ARG if the signal function may not have an int argument
  56. #  -DHAVE_STRERROR if your library includes strerror
  57.  
  58.  
  59. ##
  60. ## amiga gcc provides a unistd.h so it should work -DHAVE_UNISTD_H but
  61. ## there are collisions with the os-includes so avoid it
  62. ##
  63.  
  64. CC     = gcc
  65. #CFLAGS = -c -m68030 -m68881  -DNOGAMMA -DPROTOTYPE__P  -DMY_TERMINALS -DOLD_TERMINALS
  66. #CFLAGS = -c -m68030 -m68881  -DNOGAMMA -DPROTOTYPE__P  -DAMIGA 
  67. DEFS = -DNOGAMMA -DPROTOTYPE__P  -DRETSIGTYPE=void -DSTRNCASECMP
  68. #DEFS = -DPROTOTYPE__P -DREADLINE -DNOCWDRC -DX11 -DOLD_SELECT -DNO_STRING_H -DNO_STDLIB_H -DNO_SYS_TYPES_H -DNO_LIMITS_H -DNO_ERRNO_H  -DEXTERN_ERRNO -DRETSIGTYPE=void -DGAMMA=gamma -DBCOPY -DBZERO -DNO_STRCHR -Dunix -DAUTOCONF  
  69. CFLAGS = -c -m68030 -m68881  -DAMIGA $(DEFS)
  70.  
  71. #
  72. # here are the linker options
  73. #
  74. LD   = gcc
  75. LDFLAGS = -s
  76. #LIBS = -lm
  77.  
  78. #### this is only for the beta release
  79.  
  80. BETA = beta
  81.  
  82. #
  83. # Terminal (device) support --- see term.h
  84. #
  85.  
  86. TERMFLAGS = -Iterm -I. -DAMIGASCREEN -DMY_TERMINALS
  87.  
  88. #    maybe here is a error in the actec makefile somefiles are missing
  89. #
  90. # List of object files except term.o, version.o
  91. #
  92. # NOTE:     the util3d.o hidden3d.o plot3d.o are missing 
  93. # but    plot2d.c plot3d.c where found in objectlist 
  94. #
  95. #OBJS = binary.o bitmap.o command.o contour.o eval.o graphics.o \
  96. #       graph3d.o help.o internal.o misc.o parse.o plot.o plot2d.c plot3d.c scanner.o \
  97. #       set.o show.o specfun.o standard.o util.o interpol.o fit.o matrix.o \
  98. #       datafile.o alloc.o
  99.  
  100. OBJS = binary.o bitmap.o command.o contour.o eval.o graphics.o \
  101.        graph3d.o help.o internal.o misc.o parse.o plot.o plot2d.o plot3d.o scanner.o \
  102.        set.o show.o specfun.o standard.o util.o interpol.o fit.o matrix.o \
  103.        datafile.o alloc.o util3d.o hidden3d.o
  104.  
  105. #
  106. # List of sources
  107. #
  108. CSOURCE1 = binary.c command.c setshow.c 
  109.  
  110. # added 
  111. # util3d.c hidden3d.c here
  112. CSOURCE2 = help.c graphics.c graph3d.c internal.c util3d.c hidden3d.c
  113. CSOURCE3 = misc.c eval.c parse.c plot.c plot2d.c plot3d.c readline.c scanner.c standard.c 
  114. CSOURCE4 = bitmap.c term.c util.c version.c fit.c matrix.c
  115. CSOURCE5 = term/amiga.trm term/aed.trm term/cgi.trm term/dumb.trm term/dxf.trm \
  116.     term/dxy.trm term/eepic.trm term/epson.trm term/fig.trm \
  117.     term/hp26.trm term/hp2648.trm term/hpgl.trm term/hpljii.trm \
  118.     term/apollo.trm term/gpr.trm
  119. CSOURCE6 = term/impcodes.h term/imagen.trm term/object.h \
  120.     term/iris4d.trm term/kyo.trm term/latex.trm term/pbm.trm term/pc.trm 
  121. CSOURCE7 = term/post.trm term/qms.trm term/regis.trm term/sun.trm \
  122.     term/t410x.trm term/tek.trm term/unixpc.trm term/unixplot.trm \
  123.     term/v384.trm term/x11.trm term/bigfig.trm term/vws.trm gplt_x11.c
  124. CSOURCE8 = contour.c specfun.c interpol.c
  125.  
  126. #
  127. # Docs
  128. #
  129. DOCS1 = docs/Makefile docs/README docs/checkdoc.c docs/doc2gih.c \
  130.     docs/doc2hlp.c docs/doc2hlp.com docs/doc2ms.c docs/doc2tex.c \
  131.     docs/gnuplot.1 docs/lasergnu.1 docs/toc_entry.sty \
  132.     docs/titlepage.ms docs/titlepage.tex
  133. DOCS2 = docs/gnuplot.doc
  134. DOCS3 = docs/latextut/Makefile docs/latextut/eg1.plt \
  135.     docs/latextut/eg2.plt docs/latextut/eg3.dat docs/latextut/eg3.plt \
  136.     docs/latextut/eg4.plt docs/latextut/eg5.plt docs/latextut/eg6.plt \
  137.     docs/latextut/header.tex docs/latextut/tutorial.tex \
  138.     docs/latextut/linepoint.plt
  139.  
  140. #
  141. # Targets
  142. #
  143.  
  144. #default: gnuplot doc
  145. default: gnuplot
  146.  
  147. gnuplot: $(OBJS) term.o version.o
  148.     $(LD) $(LDFLAGS) $(OBJS) term.o version.o $(LIBS) -o gnuplot
  149.  
  150. #doc:
  151. #    @cd ../docs
  152. #    @make gih
  153.  
  154.  
  155. #
  156. # Dependencies
  157. #
  158. plot.o: plot.c
  159.     $(CC) $(CFLAGS) plot.c
  160.  
  161. term.o: term.h term.c $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
  162.     $(CC) $(CFLAGS) $(TERMFLAGS) term.c
  163.  
  164. version.o:
  165.     $(CC) $(CFLAGS) -DCONTACT=$(EMAIL) version.c
  166.  
  167. $(OBJS): plot.h
  168.     $(CC) $(CFLAGS) $*.c
  169.  
  170. command.o:
  171.     $(CC) $(CFLAGS) -c command.c -DHELPFILE=$(HELPDEST)
  172.  
  173. command.o help.o misc.o: help.h
  174.  
  175. command.o graphics.o graph3d.o misc.o plot.o set.o show.o term.o interpol.o: setshow.h
  176.  
  177. command.o fit.o matrix.o: fit.h
  178.  
  179. fit.o matrix.o: matrix.h
  180.  
  181. fit.o: fit.c fit.h matrix.h plot.h
  182.  
  183. matrix.o: matrix.c matrix.h fit.h
  184.  
  185. bitmap.o term.o: bitmap.h
  186.  
  187. #
  188. # misc
  189. #
  190. clean:
  191.     delete #?.o
  192.  
  193. veryclean: spotless
  194.  
  195. spotless:
  196.     delete #?.o gnuplot
  197.  
  198.